home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / The World of Computer Software.iso / newmarch.zip / ERRATA < prev    next >
INI File  |  1992-11-24  |  2KB  |  69 lines

  1. [This file was last modified on 11 Sept 1992]
  2.  
  3. This file contains corrections and errata for the book "The X Window
  4. System and Motif" by Jan D Newmarch (1992). Sorry if these mistakes
  5. have caused any problems.
  6.  
  7.                     Jan
  8.  
  9. --------------------------------------------------------------------
  10. p.74    Program 7 is missing a definition of the variable "depth".
  11.     Add "int depth;" at line 7:
  12.  
  13.         initX ()
  14.         {    int depth;
  15.             ...
  16.  
  17. --------------------------------------------------------------------
  18. p105    Program 11 mispells "XmNarmCallback" as "XNarmCallback" in
  19.     line 15 of p105.  Make this change:
  20.  
  21.         XtAddCallback (arrow_widget, XmNarmCallback,
  22.                                       ^
  23.  
  24. --------------------------------------------------------------------
  25. p113    In program 12, The declaration of function "main" disagrees
  26.     with its definition.  Either change line 10 of the program
  27.     to
  28.         int main ();
  29.     or line 24 to
  30.         void main (argc, argv)
  31.  
  32. --------------------------------------------------------------------
  33. p113    In program 12, a semicolon was omitted at the end of line 28.
  34.         Widget app_shell;
  35.                         ^
  36.  
  37. --------------------------------------------------------------------
  38. p159    Program 19 is missing a forward declaration of the function
  39.     "CloseCB ()".  Add this say to line 4 of the program:
  40.         void CloseCB ();
  41.  
  42. --------------------------------------------------------------------
  43. p166    In program 20, the function "edit_saveCB ()" is missing a 
  44.     definition of the variable "args".  Change the first line
  45.     of p166 to
  46.         {    Arg args[MAX_ARGS];
  47.  
  48. --------------------------------------------------------------------
  49. p167    In program 20, the variable "edit_dialog" is declared local to
  50.     function "PopupEdit ()" in line 21 of p167.  This variable 
  51.     is used by other functions such as "edit_cancel ()". Make
  52.     it a global variable.
  53.  
  54.  
  55. --------------------------------------------------------------------
  56. p184    In program 21, the "XtAddCallback ()" in function "CreateHelp()"
  57.     (line 10, p184) is missing an argument. Change this to
  58.         XtAddCallback (message_box, XmNokCallback, CloseCB, NULL);
  59.                                                    ^^^^^^^^
  60.  
  61. --------------------------------------------------------------------
  62. p202    In lines 26 and 30, the value "XrmoptionNextArg" is incorrect.
  63.     It should be "XrmoptionSepArg"
  64.                            ^^^
  65.  
  66. --------------------------------------------------------------------
  67. p204    In line 11, XtOffSet should be XtOffset.
  68.                                         ^
  69.